﻿using GalaSoft.MvvmLight;
using PropertyChanged;
using sys_Print.DataAsset;
using sys_Print.ViewModel;
using sys_Print.Views;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Drawing.Printing;
using System.Linq;
using System.Printing;
using System.Windows.Controls;
using System.Windows.Resources;

namespace sys_Print.Models
{
    [AddINotifyPropertyChangedInterface]
    public class PrintModel : ObservableObject
    {
        public bool DataSource { get; set; }
        public string Tisk { get; set; }
        public ObservableCollection<Meter> Unprinteds { get; set; }
        public ObservableCollection<Meter> Printeds { get; set; }
        public Meter SelectedListViewItem { get; set; }
        public TaskInfo TaskInfo { get; set; }
        public PrintModelType SelectedPrintType { get; set; }
        public PrintQueueCollection PrintQueues { get; set; }
        public PrintQueue SelectedPrinter { get; set; }

        public PrintModel()
        {
            DataSource = true;
            Unprinteds = new ObservableCollection<Meter>();
            Printeds = new ObservableCollection<Meter>();
            PrintQueues = new LocalPrintServer().GetPrintQueues();
        }
    }
}
